#ifndef IRQ_F2P_H
#define IRQ_F2P_H

#include "../XXK.h"
#include "../IRQ.h"

// 共16个F2P中断, 分别对应的中断ID
#define IRQ_F2P_0  61U
#define IRQ_F2P_1  62U
#define IRQ_F2P_2  63U
#define IRQ_F2P_3  64U
#define IRQ_F2P_4  65U
#define IRQ_F2P_5  66U
#define IRQ_F2P_6  67U
#define IRQ_F2P_7  68U

#define IRQ_F2P_8  84U
#define IRQ_F2P_9  85U
#define IRQ_F2P_10 86U
#define IRQ_F2P_11 87U
#define IRQ_F2P_12 88U
#define IRQ_F2P_13 89U
#define IRQ_F2P_14 90U
#define IRQ_F2P_15 91U

#define IRQ_F2P_TYPE_PEDGE      1U
#define IRQ_F2P_TYPE_High_LEVEL 3U

void F2P_IRQSet_ConnectAndEnable(XScuGic *scuGicPtr, u8 IRQ_F2P_X, u8 Priority, u8 IrqType, Xil_ExceptionHandler F2P_X_Handler);

void F2P_X_Handler(void *CallbackRef); // 在main.c文件中声明







#endif
